from django import forms
from apps.operation.models import UserFavorite,CourseComments,VideoComments
import re

class UserFavForm(forms.ModelForm):
    class Meta:
        model = UserFavorite
        fields = ['fav_id', 'fav_type']

class CourseCommentsForm(forms.ModelForm):
    class Meta:
        model = CourseComments
        fields = ['course', 'comments']

class VideoCommentsForm(forms.ModelForm):
    class Meta:
        model = VideoComments
        fields = ['video', 'comments']
